// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableBlockSize.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../expr/SQLIntegerExpr.h"

SQLAlterTableBlockSize::SQLAlterTableBlockSize()
{
}

// @Override
void SQLAlterTableBlockSize::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableBlockSize)))
  {
    acceptChild(visitor, size);
  }
  visitor->endVisit(SharedObject(SQLAlterTableBlockSize));
}

SQLIntegerExpr_ptr SQLAlterTableBlockSize::getSize()
{
  return size;
}

void SQLAlterTableBlockSize::setSize(SQLIntegerExpr_ptr size)
{
  if (size != nullptr)
  {
    size->setParent(SharedObject(SQLAlterTableBlockSize));
  }
  this->size = size;
}
